import { _decorator, Component, Node } from 'cc';
import ViewBase from '../../../../src/engine/ViewBase';
import { UI_Cache_Type, UI_Config } from '../../../../src/engine/UI_Config';
import { BundleConfig } from '../../../../src/config/BundleConfig';
import { CommonConfig } from '../../../../src/config/CommonConfig';
import { EventManager } from '../../../../src/engine/EventManager';
import { UIManager } from '../../../../src/engine/UIManager';
import { ViewAccount } from './ViewAccount';

const { ccclass, property } = _decorator;

@ccclass('login/ViewLogin')
export class ViewLogin extends ViewBase {


    protected onShow(): void {
        let btnAccount: Node = this.findChild(this.contentNode, "btnAccount");
        EventManager.onAddEvent(btnAccount, () => {
            UIManager.instance.showView(ViewAccount.uiConfig);
        })
    }

    protected onHide(callfunc?: Function): void {

    }


}

